{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/top" uname="$roleInfo.uname" lv="$roleInfo.ulv" ls="$roleInfo.uyxb" jp="$roleInfo.uczb" /}
<div class="subject main">
	<div class="layui-row">
		<div class="content">
			<div class="current">
				<span class="position">{$roleInfo.map.mname}</span>
				<span class="state">{if $roleInfo.map.ispvp==0}[安全区]{else/}[PVP]{/if}</span>
				<span class="info ajax-goto" data-url="{:url('home/index')}">返回</span>
			</div>
			<table class="layui-table" lay-size="sm">
				<tbody>
				<tr>
					<th colspan="2">{$info.uname} LV：{$info.ulv}</th>
				</tr>
				<tr>
					<th width="25%">生命</th>
					<th>
						<div class="layui-progress layui-progress-big" lay-showpercent="true">
							<div class="layui-progress-bar layui-bg-red" lay-percent="{$info.uhp}/{$info.umaxhp}"></div>
						</div>
					</th>
				</tr>
				<tr>
					<th>真元</th>
					<th>
						<div class="layui-progress layui-progress-big" lay-showpercent="true">
							<div class="layui-progress-bar layui-bg-blue" lay-percent="{$info.ump}/{$info.umaxmp}"></div>
						</div>
					</th>
				</tr>
				<tr>
					<th>修为</th>
					<th>
						<div class="layui-progress layui-progress-big" lay-showpercent="true">
							<div class="layui-progress-bar layui-bg-orange" lay-percent="{$info.uexp}/{$roleStatus.exp}"></div>
						</div>
					</th>
				</tr>
				</tbody>
			</table>
			<table class="layui-table" lay-size="sm">
				<tbody>
				<tr>
					<th width="25%">攻击</th>
					<th>{$info.ugj}</th>
				</tr>
				<tr>
					<th>防御</th>
					<th>{$info.ufy}</th>
				</tr>
				<tr>
					<th>暴击</th>
					<th>{$info.ubj}</th>
				</tr>
				<tr>
					<th>速度</th>
					<th>{$info.usd}</th>
				</tr>
				<tr>
					<th>闪避</th>
					<th>{$info.usb}</th>
				</tr>
				<tr>
					<th>吸血</th>
					<th>{$info.uxx}</th>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
</body>
{/block}
{block name="script"}
<script>
layui.use(['jquery', 'form', 'layajax', 'upload', 'flow', 'element'], function () {
	var $ = layui.jquery
			, layajax = layui.layajax
			, upload = layui.upload
			, element = layui.element
			, flow = layui.flow
			, form = layui.form;

	form.render();
});
</script>
{/block}
